var mongoose = require('mongoose');
var settings = require('../config/settings');
mongoose.connect(settings.mongodb_url, {
    server: {
        poolSize: 20
    }
});
mongoose.Promise = require('bluebird');
module.exports = mongoose;